package top.yongyan0624.service;

import com.github.pagehelper.PageInfo;
import top.yongyan0624.pojo.Room;

import java.util.List;

/**
 * @author Yongyan
 * @description: TODO
 * @date 2020/12/24
 **/
public interface RoomService {
    //添加教室
    Integer addRoom(Room room);
    //删除教室
    Integer deleteRoom(Integer id);
    //修改教室
    Integer updateRoom(Room room);
    //查询所有教室
    List<Room> findAllRoom();
    PageInfo<Room> findAllRoom(Integer pageNum, Integer pageSize);
    //根据id查询教室
    Room findById(Integer id);
    //查找教室
    List<Room> findRoom(Room room);
    //统计所有教室

    Integer totalRoom();
}
